<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Postar Ideia</title>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>css/style.css"/>
    <script type="text/javascript" src="<?php echo base_url() ?>js/jquery-1.6.js"></script>
    <script type="text/javascript" src="<?php echo base_url() ?>js/jquery.validate.js" ></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>js/core.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>js/validate_form.js"></script>
  </head>
  <body>
    <?php
    include ("includes/nav_bar.php");
    ?>
    <div id="main-content">
      <div id="conteudo" style="width: 65%;">
        <h1>Escolha uma Ideia e contribua</h1>
        <?php if (isset($view_msg))
          echo $view_msg; ?>
        
        <?php if(isset($view_ideias))foreach ($view_ideias as $ideia): ?>
          <a class="mostrar-ideia" href="<?php echo base_url() . "ideias/verpostagem/id/{$ideia->pk_int_idIdeias}"; ?>">
            <div class="post-esquerda" style="margin: 0 auto 15px; width: 80%;">
              <h2><?php echo $ideia->char_tituloIdeia; ?></h2>
              <p><br /><?php echo $ideia->char_descricaoIdeia; ?><br /><br /></p>
              <p style="font-size: 10px;">por <?php echo $ideia->char_nomeUsuario; ?> em <?php echo $ideia->char_nome; ?></p>
            </div>
          </a>
        <?php endforeach; ?>
      </div>
    </div>
  </body>
</html>